package com.pt25.study.example.application.impl;

import com.pt25.study.example.application.ShardingAppService;
import com.pt25.study.example.domain.sharding.ddo.*;
import com.pt25.study.example.domain.sharding.service.*;
import com.pt25.study.example.repository.sharding.mapper.ShardingSdstmsMapper;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ShardingAppServiceImpl implements ShardingAppService {

    @Resource
    private ShardingTestService shardingTestService;

    @Resource
    private ShardingMsService shardingMSService;

    @Resource
    private ShardingSdService shardingSDService;

    @Resource
    private ShardingSdstService shardingSDSTService;

    @Resource
    private ShardingSdstmsService shardingSdstmsService;

    @Resource
    private ShardingSService shardingSService;
    @Autowired
    private ShardingSdstmsMapper shardingSdstmsMapper;

    @Override
    public ShardingTest getShardingTest(Long id) {
        return shardingTestService.getShardingTest(id);
    }

    @Override
    public void addShardingTest(ShardingTest shardingTest) {
        shardingTestService.addShardingTest(shardingTest);
    }

    @Override
    public ShardingMs getShardingMs(Long id) {
        return shardingMSService.getShardingMs(id);
    }

    @Override
    public void addShardingMs(ShardingMs shardingMS) {
        shardingMSService.addShardingMs(shardingMS);
    }

    @Override
    public ShardingSd getShardingSd(Long id) {
        return shardingSDService.getShardingSd(id);
    }

    @Override
    public void addShardingSd(ShardingSd shardingSD) {
        shardingSDService.addShardingSd(shardingSD);
    }

    @Override
    public ShardingSdst getShardingSdst(Long id) {
        return shardingSDSTService.getShardingSDST(id);
    }

    @Override
    public void addShardingSdst(ShardingSdst shardingSdst) {
        shardingSDSTService.addShardingSdst(shardingSdst);
    }

    @Override
    public ShardingSdstms getShardingSdstms(Long id) {
        return shardingSdstmsService.getShardingSdstms(id);
    }

    @Override
    public void addShardingSdstms(ShardingSdstms shardingSdstms) {
        shardingSdstmsService.addShardingSdstms(shardingSdstms);
    }

    @Override
    public ShardingS getShardingS(Long id) {
        return shardingSService.getShardingS(id);
    }

    @Override
    public void addShardingS(ShardingS shardingS) {
        shardingSService.addShardingS(shardingS);
    }
}
